import Vue from 'vue'
import VueRouter from 'vue-router'
// import c from './c'
// // c += 1
// // c = c + 1
// // console.log(c)
// console.log(typeof (c))

// let a = c
// a += 1
// console.log(++a)
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'MyButton',
    component: () => import('../views/my-button.vue')
  },
  {
    path: '/test-alert',
    name: 'test-alert',
    component: () => import('../views/test-alert.vue')
  },
  {
    path: '/my-switch',
    name: 'my-switch',
    component: () => import('../views/my-switch.vue')
  },
  {
    path: '/my-dialog',
    name: 'my-dialog',
    component: () => import('../views/my-dialog.vue')
  },
  {
    path: '/slider',
    name: 'Slider',
    component: () => import('../views/SliderTest.vue')
  },
  {
    path: '/headline',
    name: 'MyHeadLine',
    component: () => import('../views/HeadlineTest.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
